﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using X23.Application.Dto;
using X23.Model.Bill;

namespace X23.Application.BillManagement.Dto
{
    /// <summary>
    /// 账单信息
    /// </summary>
    public class BillDto : IntDto
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 账单类型
        /// </summary>
        public BillType BillType { get; set; }
        /// <summary>
        /// 钱
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime DateTime { get; set; }
        /// <summary>	
        /// 账单备注		
        /// </summary>	
        public string BillRemark { get; set; }

        #region 用于时间分组查询
        /// <summary>
        /// 年
        /// </summary>
        public int Year { get; set; }
        /// <summary>
        /// 月
        /// </summary>
        public int Month { get; set; }
        /// <summary>
        /// 日
        /// </summary>
        public int Day { get; set; }
        #endregion
    }


    public class BillGroupInputDto
    {
        /// <summary>
        /// 上一条账单Id
        /// </summary>
        public int LastId { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime DateTime { get; set; }
        /// <summary>
        /// 行数
        /// </summary>
        public int Rows { get; set; }
    }
    public class BillGroupDto : BillAmountDto
    {
        /// <summary>
        /// 年
        /// </summary>
        public int Year { get; set; }
        /// <summary>
        /// 月
        /// </summary>
        public int Month { get; set; }
        /// <summary>
        /// 日
        /// </summary>
        public int Day { get; set; }
        /// <summary>
        /// 账单列表
        /// </summary>
        public List<BillDto> BillList { get; set; } = new List<BillDto>();

    }

}
